package com.yudongyang.utils;

public enum FileSizeUnit {

	 //	B,K、M、G、T、P
	
		B(1,"byte"),KB(1024,"kb"),MB(1024*1024,"mb"),GB(1024*1024*1024,"gb"),TB(1024*1024*1024*1024,"tb"),
		PB(1024*1024*1024*1024*1024,"pb");
		private int code;
		private String name ;
		FileSizeUnit(int code,String name){
			this.code=code;
			this.name=name;
		}
		public int getCode() {
			return code;
		}
		public void setCode(int code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
}
